package com.zam.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 *
 * @author zam
 * @since 2023-12-17
 */
@Getter
@Setter
@TableName("sys_file")
@ApiModel(value = "SysFile对象", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class SysFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文件名称")
    private String name;

    @ApiModelProperty("文件类型")
    private String type;

    @ApiModelProperty("文件大小")
    private Integer size;

    @ApiModelProperty("下载链接")
    private String url;

    @ApiModelProperty("是否删除")
    @TableLogic(value = "0",delval = "1")
//    @TableField(value = "isDelete")
    private Boolean isDelete;

    @ApiModelProperty("是否禁用链接")
    private Boolean enable;

    @ApiModelProperty("md5")
    private String md5;
}
